package org.shopen.puremvc.controller.testing
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.puremvc.as3.utilities.statemachine.StateMachine;
	import org.shopen.puremvc.ApplicationConstants;

	public class TestOutCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			try
			{
				sendNotification(StateMachine.ACTION, notification.getBody(), ApplicationConstants.ACTION_END_TESTING);
			}
			catch (error : Error)
			{
				sendNotification(ApplicationConstants.GENERAL_ERROR, error);
			}
		}
	}
}